package io.geekidea.boot.framework.util;

import io.geekidea.boot.framework.exception.BusinessException;
import io.geekidea.boot.system.entity.SysUser;
import org.apache.commons.lang3.StringUtils;

public class TokenUtils {

    public static Long getUserId(String token) {
        if (StringUtils.isBlank(token)) {
            throw new BusinessException("无效的token");
        }
        // 这里实现实际的token解析逻辑，示例直接返回1L
        return 1L;
    }
}
